package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Hotel;
import cn.wolfcode.luowowo.article.query.HotelQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HotelMapper {
    int deleteByPrimaryKey(Long  id);
    int insert(Hotel record);
    Hotel selectByPrimaryKey(Long  id);
    List<Hotel> selectAll();
    int updateByPrimaryKey(Hotel record);

    List<Hotel> selectForList(HotelQuery qo);

    List<Hotel> selectHotelByDestId(Long id);

    List<Hotel> selectHotelByThemeId(@Param("themeId") Long themeId);

    List<Hotel> selectHotelByThemeIdAndDestId(HotelQuery qo);

    List<Hotel> selectHotelByDestName(@Param("name") String name);
}